home *** CD-ROM | disk | FTP | other *** search
/ Chip 2000 February / OpenLinux 2.3 CD.iso / live / usr / share / vim / syntax / amiga.vim < prev    next >
Encoding:
Text File  |  1999-08-10  |  2.6 KB  |  79 lines

  1. " Vim syntax file
  2. " Language:    AmigaDos
  3. " Maintainer : Dr. Charles E. Campbell, Jr. <Charles.Campbell@gsfc.nasa.gov>
  4. " Last change: May 18, 1998
  5.  
  6. " Remove any old syntax stuff hanging around
  7. syn clear
  8. syn case ignore
  9.  
  10. " Amiga Devices
  11. syn match amiDev "\(par\|ser\|prt\|con\|nil\):"
  12.  
  13. " Amiga aliases and paths
  14. syn match amiAlias    "\<[a-zA-Z][a-zA-Z0-9]\+:"
  15. syn match amiAlias    "\<[a-zA-Z][a-zA-Z0-9]\+:[a-zA-Z0-9/]*/"
  16.  
  17. " strings
  18. syn region amiString    start=+"+ end=+"+ oneline
  19.  
  20. " numbers
  21. syn match amiNumber    "\<\d\+\>"
  22.  
  23. " Logic flow
  24. syn region    amiFlow    matchgroup=Statement start="if"    matchgroup=Statement end="endif"    contains=ALL
  25. syn keyword    amiFlow    skip endskip
  26. syn match    amiError    "else\|endif"
  27. syn keyword    amiElse contained    else
  28.  
  29. syn keyword    amiTest contained    not warn error fail eq gt ge val exists
  30.  
  31. " echo exception
  32. syn region    amiEcho    matchgroup=Statement start="\<echo\>" end="$" oneline contains=amiComment
  33. syn region    amiEcho    matchgroup=Statement start="^\.[bB][rR][aA]" end="$" oneline
  34. syn region    amiEcho    matchgroup=Statement start="^\.[kK][eE][tT]" end="$" oneline
  35.  
  36. " commands
  37. syn keyword    amiKey    addbuffers    copy    fault    join    pointer    setdate
  38. syn keyword    amiKey    addmonitor    cpu    filenote    keyshow    printer    setenv
  39. syn keyword    amiKey    alias    date    fixfonts    lab    printergfx    setfont
  40. syn keyword    amiKey    ask    delete    fkey    list    printfiles    setmap
  41. syn keyword    amiKey    assign    dir    font    loadwb    prompt    setpatch
  42. syn keyword    amiKey    autopoint    diskchange    format    lock    protect    sort
  43. syn keyword    amiKey    avail    diskcopy    get    magtape    quit    stack
  44. syn keyword    amiKey    binddrivers    diskdoctor    getenv    makedir    relabel    status
  45. syn keyword    amiKey    bindmonitor    display    graphicdump    makelink    remrad    time
  46. syn keyword    amiKey    blanker        iconedit    more    rename    type
  47. syn keyword    amiKey    break    ed    icontrol    mount    resident    unalias
  48. syn keyword    amiKey    calculator    edit    iconx    newcli    run    unset
  49. syn keyword    amiKey    cd    endcli    ihelp    newshell    say    unsetenv
  50. syn keyword    amiKey    changetaskpri    endshell    info    nocapslock    screenmode    version
  51. syn keyword    amiKey    clock    eval    initprinter    nofastmem    search    wait
  52. syn keyword    amiKey    cmd    exchange    input    overscan    serial    wbpattern
  53. syn keyword    amiKey    colors    execute    install    palette    set    which
  54. syn keyword    amiKey    conclip    failat    iprefs    path    setclock    why
  55.  
  56. " comments
  57. syn match    amiComment    ";.*$" oneline
  58.  
  59. " sync
  60. syn sync lines=50
  61.  
  62. if !exists("did_amiga_syntax_inits")
  63.   let did_amiga_synax_inits = 1
  64.   hi link amiAlias    Type
  65.   hi link amiComment    Comment
  66.   hi link amiDev    Type
  67.   hi link amiEcho    String
  68.   hi link amiElse    Statement
  69.   hi link amiError    Error
  70.   hi link amiKey    Statement
  71.   hi link amiNumber    Number
  72.   hi link amiString    String
  73.   hi link amiTest    Special
  74. endif
  75.  
  76. let b:current_syntax = "amiga"
  77.  
  78. " vim:ts=15
  79.